﻿<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ include file="/WEB-INF/jsp/common/common.jsp"%>
<c:set var="path" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


<style type="text/css">
td, th {
	white-space: nowrap;
	text-align: center;
}

table.gridtable {
	font-family: verdana, arial, sans-serif;
	font-size: 11px;
	color: #333333;
	border-width: 1px;
	border-color: #666666;
	border-collapse: collapse;
}

table.gridtable th {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #dedede;
}

table.gridtable td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #ffffff;
}
</style>

</head>
<body>
	<table width="99%" border="1" cellspacing="0" cellpadding="0"
		class="gridtable">
		<tr>
			<td colspan="22" align="center"><strong>考勤报表</strong></td>
		</tr>
		<tr>
			<td colspan="22">
				<form action="${path}/jq/wr.do?method=show"	method="post">
					开始日期: <input id="mycal1" name="search_startdate"
						value="${startdate}" type="text" size="12">
					结束日期: <input id="mycal11" name="search_enddate"
						value="${enddate}" type="text" size="12">
					&nbsp; <input type="submit" value="查 询"/>&nbsp; <a target="_blank"
						href="${path}/jq/wr.do?method=excel&search_startdate=${startdate}&search_enddate=${enddate} ">导出execl</a>
				</form>
			</td>
		</tr>
		<tr>
			<th rowspan="2">序号</th>
			<th rowspan="2">姓名</th>
			<th rowspan="2">一级部门</th>
			<th rowspan="2">二级部门</th>
			<th rowspan="2">三级部门</th>
			<th colspan="13">请假情况(H) ${startdate} 至
				${enddate}</th>
			<th rowspan="2">实际工时</th>
			<th rowspan="2">应出勤工时</th>
			<th rowspan="2">差额</th>
			<th rowspan="2">平均每日工作时长</th>
		</tr>
		<tr>
			<th>病假</th>
			<th>产检假</th>
			<th>陪产假</th>
			<th>产假</th>
			<th>婚假</th>
			<th>年休假</th>
			<th>调休</th>
			<th>事假</th>
			<th>丧假</th>
			<th>其他</th>
			<th>出差</th>
			<th>公出</th>
			<th>司假</th>
		</tr>
		<c:forEach items="${vl}" var="item" varStatus="itemIndex">
			<tr>
				<td>${itemIndex.index+1}</td>
				<td>${item.memberName}</td>
				<td>${item.deptName1}</td>
				<td>${item.deptName2}</td>
				<td>${item.deptName3}</td>
				<td>${item.qjMap['5705361015223765326'].hours}</td>
				<td>${item.qjMap['-169319816427518310'].hours}</td>
				<td>${item.qjMap['2041071068928951711'].hours}</td>
				<td>${item.qjMap['4699807474016863501'].hours}</td>
				<td>${item.qjMap['8779689809439049634'].hours}</td>
				<td>${item.qjMap['3914859601377381015'].hours}</td>
				<td>${item.qjMap['2930494953354907074'].hours}</td>
				<td>${item.qjMap['-1135316255604717531'].hours}</td>
				<td>${item.qjMap['-7949396643966726286'].hours}</td>
				<td>${item.qjMap['-3265967495408038335'].hours}</td>			
				<td>${item.qjMap['1'].hours}</td>
				<td>${item.qjMap['2'].hours}</td>
				<td>${item.qjMap['7654991035412398570'].hours}</td>
				<td>${item.sjWorkingHours}</td>
				<td>${item.ycqWorkingHours}</td>
				<td></td>
			    <td></td>
			</tr>
		</c:forEach>
	</table>
	<br/><br/>
</body>
</html>